<?php
session_start();

require($_SESSION['global']['darmedicus_local_patch']."/library/config.inc.php");
require($_SESSION['global']['darmedicus_local_patch']."/library/Database.singleton.php");
require($_SESSION['global']['darmedicus_local_patch']."/funct_ewus.php");
// create the $db singleton object
$db = Database::obtain(DB_SERVER, DB_USER, DB_PASS, DB_DATABASE);
$db->debug = true;
$db->connect();

$ewus_odp = check_ewus($_SESSION['global']['eWUS_login'], $_SESSION['global']['eWUS_password'], '81041407458');
if (is_array($ewus_odp)==true){
print_r($ewus_odp);
}
else echo $ewus_odp;
?>
